package Exercises;

import java.util.Scanner;

public class Task13 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = 0;
	while(true)
	{
	System.out.println("Please add a number: ");	
		int n = sc.nextInt();
		if(n>=0){ continue; }

			if(n < a)
			{
				a=n;
			}
		
		System.out.println(a + "is the smaller negative number you added");
	}
		
		
		
		
		
	}

}
